<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkFlows
 *
 * @ORM\Table(name="tk_flows", indexes={@ORM\Index(name="vccId", columns={"vcc_id"})})
 * @ORM\Entity
 */
class TkFlows
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="flow_name", type="string", length=100, nullable=false, options={"comment"="流程名称"})
     */
    private $flowName;

    /**
     * @var string
     *
     * @ORM\Column(name="flow_description", type="text", length=0, nullable=false, options={"comment"="说明"})
     */
    private $flowDescription;

    /**
     * @var int
     *
     * @ORM\Column(name="status", type="smallint", nullable=false, options={"comment"="流程状态（0未启用1启用2禁用）"})
     */
    private $status = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="ticket_no_format", type="string", length=100, nullable=false, options={"comment"="工单编号格式"})
     */
    private $ticketNoFormat;

    /**
     * @var int
     *
     * @ORM\Column(name="create_user_id", type="integer", nullable=false)
     */
    private $createUserId;

    /**
     * @var string
     *
     * @ORM\Column(name="create_user_name", type="string", length=30, nullable=false)
     */
    private $createUserName;

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false)
     */
    private $createTime;

    /**
     * @var int
     *
     * @ORM\Column(name="update_user_id", type="integer", nullable=false)
     */
    private $updateUserId;

    /**
     * @var string
     *
     * @ORM\Column(name="update_user_name", type="string", length=30, nullable=false)
     */
    private $updateUserName;

    /**
     * @var int
     *
     * @ORM\Column(name="update_time", type="integer", nullable=false)
     */
    private $updateTime;

    /**
     * @var int
     *
     * @ORM\Column(name="if_api_url", type="smallint", nullable=false, options={"comment"="是否开启初始化接口功能（0否 1是）"})
     */
    private $ifApiUrl = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="api_url", type="text", length=0, nullable=false, options={"comment"="初始化接口地址"})
     */
    private $apiUrl;

    /**
     * @var int
     *
     * @ORM\Column(name="api_method", type="smallint", nullable=false, options={"comment"="接口请求方法（0 GET、1 POST）"})
     */
    private $apiMethod = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="api_time_out", type="integer", nullable=false, options={"default"="1","comment"="接口请求超时时间（1、2、3、4、5、6、7、8、9、10，单位秒）"})
     */
    private $apiTimeOut = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_return_fields", type="text", length=0, nullable=false, options={"comment"="接口响应结果字段"})
     */
    private $apiReturnFields;

    /**
     * @var string
     *
     * @ORM\Column(name="api_params", type="text", length=0, nullable=false, options={"comment"="接口请求参数"})
     */
    private $apiParams;

    /**
     * @var string
     *
     * @ORM\Column(name="api_headers", type="text", length=0, nullable=false, options={"comment"="接口请求头"})
     */
    private $apiHeaders;


}
